Skip to content

fix(quantum): apply monitor_config_defaults to cron check-ins - #1265

Merged
solnic merged 1 commit into
getsentry:masterfrom
pcbeingused333:fix/c2741-quantum-defaults
Nov 12, 2026
Merged

solnic merged 1 commit into
getsentry:masterfrom
pcbeingused333:fix/c2741-quantum-defaults

Conversation

@pcbeingused333

Copy link
Copy Markdown
Contributor

Description

integrations: [monitor_config_defaults: ...] is documented as applying to cron jobs reported by "one of the integrations", but the Quantum integration ignored it: check_in_opts/2 built monitor_config from only schedule and timezone, so max_runtime, checkin_margin, failure_issue_threshold, etc. were never sent for Quantum jobs. The Oban integration already merges these defaults (Sentry.Config.integrations()[:monitor_config_defaults]).

Quantum now starts from monitor_config_defaults and merges the job's schedule and timezone on top, the same precedence Oban uses.

Added a test in test/sentry/integrations/quantum/cron_test.exs, adapted from the Oban "uses default monitor configuration in Sentry's config if present" test. It fails on master (the three default keys are missing from the check-in body) and passes with the fix (mix test test/sentry/integrations/quantum/cron_test.exs, Elixir 1.18 / OTP 27).

Issues

None filed; found by comparing the Quantum and Oban cron integrations.

This change was generated with assistance from Claude Code.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

@solnic solnic left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! ❤️

@solnic
solnic merged commit e545324 into getsentry:master Nov 12, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants